import request from "@/api/request";
import {getRandom} from "@/plugin/useFn";

export const getCaptcha = () => {
    const params = {
        w:114,
        h:40,
        v:getRandom(16,true)
    }
    return request.get('/account/captcha',params)
}

export const userLogin = (data:object)=>{
    return request.post('/account/login',data)
}
